﻿<UserControl x:Class="XWord.GUI.Views.Words.DictOnlineWordExplainView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:info="http://schemas.xword.com/winfx/xaml/info"
             xmlns:local="clr-namespace:XWord.GUI.Views.Words"
             xmlns:cal="http://www.caliburnproject.org"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Expander IsExpanded="True">
            <Expander.Header>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="{Binding DisplayName}"/>
                </StackPanel>
            </Expander.Header>
            <WebBrowser x:Name="webBrower" LoadCompleted="WebBrowser_LoadCompleted"  DataContextChanged="WebBrowser_DataContextChanged" DataContext="{Binding Name}">
                <WebBrowser.ContextMenu>
                    <ContextMenu>
                        <MenuItem Header="复制" Click="MenuItem_Click"></MenuItem>
                        <MenuItem Header="朗读" Click="MenuItem_Click_1"></MenuItem>
                    </ContextMenu>
                </WebBrowser.ContextMenu>
            </WebBrowser>
        </Expander>
        
    </Grid>
</UserControl>
